package com.wxmp.wxcms.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wxmp.core.page.Page;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper=false)
@ToString
public class RegisterUser extends Page implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String province;
	private String city;
	private String country;
	private String openid;
	private String wx;
	private String nickName;
	private String gender;
	private String phone;
	//timezone = "GMT+8"
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss",iso= DateTimeFormat.ISO.DATE_TIME)
	private Date endTime;//结束时间
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss",iso= DateTimeFormat.ISO.DATE_TIME)
	private Date useTime;//使用时间
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss",iso= DateTimeFormat.ISO.DATE_TIME)
	private Date createTime;//创建时间
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss",iso= DateTimeFormat.ISO.DATE_TIME)
	private Date updateTime;//更新时间
	
	private String address;//根据经纬度获取的地址
	private Integer flag;//标记
	private Integer userType;//用户类型
	private String language;//用户语言
	private String memo;//备注信息
	private String avatarUrl;//备注信息
	
	private String name;//封装用户类型名称
	private String validateCode;//封装用户验证码

	private String lat;//经度
	private String log;//纬度
}
